<%@ page import="java.util.List" %>
<%@ page import="com.project.purchase.entity.Person" %>
<%@ page import="com.project.purchase.vo.PersonWithDept" %>
<%@ page import="com.github.pagehelper.PageInfo" %>
<%@ page import="com.project.purchase.entity.Producer" %>
<%@ page import="com.project.purchase.entity.Goods" %>
<%@ page import="com.project.purchase.vo.GoodsWithPro" %>
<%@ page import="com.project.purchase.entity.User" %>
<%@ page import="com.project.purchase.vo.IndentWithPersonProducer" %><%--
  Created by IntelliJ IDEA.
  User: VX5
  Date: 2019/6/21
  Time: 15:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script>
        var i = 0;
        function x() {
            i = i + 1;
            return i;
        }
    </script>

    <style>
        .modal-dialog{
            pointer-events: auto;
        }
        .navbar{
            min-height: 20px;
        }
        .add{
            margin-outside: 5px;
            margin-top: 8px;
            min-height: 20px;
            min-width: 10%;
        }
        .back{
            margin-outside: 5px;
            margin-top: 13px;
            min-height: 10px;
            min-width: 15%;
            text-align: center;
            margin-bottom: 5px;
        }
        .page{
            margin-outside: 0px;
            margin-top: 3px;
            min-height: 1%;
            min-width: 15%;
        }
        .pagination{
            margin-bottom: 0px;
            text-align: right;
        }
        .navbar-brand2{
            min-height: 10px;
        }
        .bg {
            background: url("E:/purchase/src/main/webapp/timg.jpg");
            background-position: center 0;
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-size: cover;
            -webkit-background-size: cover;
            -o-background-size: cover;
            -moz-background-size: cover;
            -ms-background-size: cover;
        }
    </style>
</head>
<body >
<%
    User user = (User) request.getSession().getAttribute("user");
    List<IndentWithPersonProducer> list1 = (List<IndentWithPersonProducer>) request.getAttribute("msg1");
    List<GoodsWithPro> list2 = (List<GoodsWithPro>) request.getAttribute("msg2");
%>
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid" style="background-color: #0DA3E2">
        <div class="navbar-header" style="font-family: 华文新魏;font-size: 25px">
            国有资产采购管理系统
        </div>
        <%
            if(user.getParam().equals("user")){
        %>
        <div class="nav navbar-nav" style="float: right;font-family: 华文新魏;font-size: 20px">
            欢迎 员工用户 <%=user.getLoginname()%>!  <a href="/login/back">退出</a>
        </div>
        <%
        }else if (user.getParam().equals("producer")){
        %>
        <div class="nav navbar-nav" style="float: right;font-family: 华文新魏;font-size: 20px">
            欢迎 商户用户 <%=user.getLoginname()%>!  <a href="/login/back">退出</a>
        </div>
        <%
        }else {
        %>
        <div class="nav navbar-nav" style="float: right;font-family: 华文新魏;font-size: 20px">
            欢迎 管理员 <%=user.getLoginname()%>!  <a href="/login/back">退出</a>
        </div>
        <%
            }
        %>
    </div>
</nav>


<div class="container bg">
    <nav class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#">国有资产采购管理系统</a>
            </div>
            <div>

                <ul class="nav navbar-nav">
                    <li><a href="/home/get">主   页</a></li>
                    <li><a href="/person/get">员工管理</a></li>
                    <li><a href="/indent/get">订单管理</a></li>
                    <li><a href="/producer/get">商户管理</a></li>
                    <li><a href="/goods/get">已订货物</a> </li>
                </ul>
            </div>
        </div>
    </nav>
    <div class="panel panel-primary" style="min-height: 80%">
        <div class="panel-heading">
            <h3 class="panel-title" style="text-align: center">公告面板</h3>
        </div>
        <div id="myCarousel" class="carousel slide" style="min-height: 70%">
            <!-- 轮播（Carousel）指标 -->
            <ol class="carousel-indicators">
                <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                <li data-target="#myCarousel" data-slide-to="1"></li>
                <li data-target="#myCarousel" data-slide-to="2"></li>
            </ol>
            <!-- 轮播（Carousel）项目 -->
            <div class="carousel-inner">
                <div class="item active">
                    <p style="text-align: center;font-family: 华文新魏;font-size: 50px">订单信息公告</p>
                    <%
                        for (IndentWithPersonProducer indent:list1){
                    %>
                    <p style="text-align: center;font-family: 华文新魏;font-size: 20px">订单号为<%=indent.getIndentid()%>的订单的审核状况<%=indent.getAdmincheck()%></p>
                    <%
                        }
                    %>
                </div>
                <div class="item">
                    <p style="text-align: center;font-family: 华文新魏;font-size: 50px">审核通过后已到货物</p>
                    <%
                        for (GoodsWithPro goods:list2){
                    %>
                    <p style="text-align: center;font-family: 华文新魏;font-size: 20px">货物名称：<%=goods.getGoodsname()%>，中标商家：<%=goods.getProducername()%>，中标总价：<%=goods.getCost()%></p>
                    <%
                        }
                    %>
                </div>
            </div>
            <!-- 轮播（Carousel）导航 -->
            <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                <span class="sr-only">Next</span>
            </a>
        </div>
        <nav class="navbar navbar-inverse" role="navigation" style="margin-bottom: 0px">
            <div class="container-fluid" style="text-align: center">
                <div class="navbar-header navbar-brand2">
                    <a class="navbar-brand"  href="#">主页公告</a>
                </div>
            </div>
        </nav>
    </div>
</div>
</body>
</html>
